Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

test: fix act warnings in LogoutButton component #688

Closed
wants to merge 1 commit into from

Conversation

Glazy
Copy link
Contributor

@Glazy Glazy commented Oct 8, 2022

This PR fixes #687 (partially).

  • I've added a unit test to test for potential regressions of this bug.
  • The changelog has been updated, if applicable.
  • Commits in this PR are minimal and have descriptive commit messages.

these warnings were occurring because of the async useEffect started in
the SessionProvider component. to stop the warnings, we now await the
result of that flow before performing actions in, or asserting on, this
component
@ThisIsMissEm
Copy link
Contributor

@Glazy thanks for this, though I think there might be further changes to this code that might affect this PR.

@Glazy Glazy closed this Nov 30, 2023
@Glazy Glazy deleted the fix/logout-button-act-errors branch November 30, 2023 02:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

React Act warnings in tests
2 participants